package com.zelix;

import java.io.*;
import java.util.HashSet;

// Referenced classes of package com.zelix:
//            kt, dc, td, ke, 
//            ks, is, ux, qy, 
//            jb

public class eu extends kt
    implements ke, Comparable
{

    private ks k;
    private Object l[];
    private static String z[];

    eu(kt kt1, jb jb, qy qy1)
        throws IOException, dc
    {
        super(kt1);
        l = new Object[3];
        int i = jb.readUnsignedShort();
        int j = jb.readUnsignedShort();
        int i1 = jb.readUnsignedShort();
        Integer integer = kt.g.a(i);
        qy1.b(integer, this);
        l[0] = integer;
        integer = kt.g.a(j);
        qy1.b(integer, this);
        l[1] = integer;
        integer = kt.g.a(i1);
        qy1.b(integer, this);
        l[2] = integer;
        int j1 = jb.readUnsignedShort();
        e(j1);
    }

    public int compareTo(Object obj)
    {
        eu eu1 = (eu)obj;
        int i = d(2);
        int j = eu1.d(2);
        if(i < j)
            return -1;
        return i != j ? 1 : 0;
    }

    void a(PrintWriter printwriter, StringBuffer stringbuffer)
    {
        String s;
label0:
        {
            printwriter.println("");
            s = z[2];
            if(k != null)
            {
                s = s + k.b();
                if(kt.i == 0)
                    break label0;
            }
            s = s + z[5];
        }
        printwriter.println(String.valueOf(stringbuffer) + s);
        printwriter.println(String.valueOf(stringbuffer) + z[1] + c(0));
        printwriter.println(String.valueOf(stringbuffer) + z[3] + c(1));
        printwriter.println(String.valueOf(stringbuffer) + z[4] + c(2));
    }

    public String q()
    {
        if(k != null)
            return k.b();
        else
            return z[0];
    }

    public td b(int i)
    {
        return (td)l[i];
    }

    String c(int i)
    {
        td td1 = (td)l[i];
        return td1.p();
    }

    int d(int i)
    {
        td td1 = (td)l[i];
        return td1.q();
    }

    public String a()
    {
        return z[6];
    }

    public boolean a()
    {
        return k == null;
    }

    void b(HashSet hashset)
    {
        if(k != null)
            hashset.add(k);
    }

    public void a(Integer integer, td td1)
    {
        int i;
        int j;
        int i1;
        i1 = kt.i;
        i = l.length;
        td1.a(true);
        j = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        Object obj = l[j];
        if((obj instanceof Integer) && ((Integer)obj).equals(integer))
            l[j] = td1;
        j++;
_L2:
        if(j >= i)
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }

    void e(int i)
        throws dc
    {
        if(i != 0)
        {
            is is1 = a(i);
            k = (ks)is1;
        }
    }

    void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeShort(d(0));
        dataoutputstream.writeShort(d(1));
        dataoutputstream.writeShort(d(2));
        dataoutputstream.writeShort(k != null ? k.j() : 0);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =5;
                    break;
                case 1:
                    key =25;
                    break;
                case 2:
                    key =118;
                    break;
                case 3:
                    key =109;
                    break;
                case 4:
                    key =73;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[7];
        as[0] = z("ox\000\ffix\030\nfQq\004\002>d{\032\b".toCharArray());
        as[1] = z("\fJ\002\f;q9\031\013/v|\002Mi%#V".toCharArray());
        as[2] = z("fx\002\016!%".toCharArray());
        as[3] = z("\f\\\030\tij\177\020\036,q9VMi%#V".toCharArray());
        as[4] = z("\fQ\027\003-i|\004M&c\177\005\b=%#V".toCharArray());
        as[5] = z("DW/Macp\030\f%i`_".toCharArray());
        as[6] = z("@a\025\b9qp\031\003\fkm\004\024".toCharArray());
        z = as;

    }
}